package bancosys.tec.rtm.exception;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Koji
 */
public class PersisterImplMock implements ExceptionPersister {

    private static List<Throwable> exceptions = new ArrayList<Throwable>();

    public ExceptionRecord persist(Throwable exception) {
        exceptions.add(exception);
        return null;
    }

    public List<Throwable> getExceptions() {
        return exceptions;
    }

    public void cleanRTM(int dias) throws RTMException {
    }

    public void monitor(Throwable throwable) {
        exceptions.add(throwable);
    }
}